package com.hznu.stmanage.dao;

import com.hznu.stmanage.entity.Student;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface StudentMapper {

    int deleteByPrimaryKey(Long id);

    int insert(Student record);

    int insertSelective(Student record);

    Student selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Student record);

    int updateByPrimaryKey(Student record);

    /**
     * 根据学号查找学生
     * @param studentID
     * @return
     */
    Student selectByID(@Param("id") String studentID);
}